<?php

namespace Application\Form;
use Zend\Form\Form;

class TraitementdemandeForm extends Form{
	
	public function __construct(){
		parent::__construct();
		
		$this->setAttribute('method','post');
		

		$this->add(array(
				'type' => 'Zend\Form\Element\Select',
				'name' => 'traitementdemande',
				'options' => array(
						'label' => _('Type de demande'),
						'value_options' => array(
								'1' => 'Type de vôtre demande',
								'Absence' => 'Demande d\'absence',
								'Formation' => 'Demande de Formation',
								'Support' => 'Demande de support',
								'Materiel' => 'Demande de matériel',
								'Suggestion' => 'Suggestions',
								'Reclamation' => 'Réclamation',
								'Autre' => 'Autre',
						),
				),
				'attributes' => array(
						'value' => '1' //set selected to '1'
				)
		));
	
		
		$this->add(array(
				'name' => 'submit',
				'attributes' => array(
						'type'  => 'submit',
						'width' => '30px',
						'value' => 'Envoyer',
						'id' => 'submitbutton',
				),
		));
	}
}

?>